package com.kjtpay.design_pattern.composite;

/**
 * 公司类，抽象类或者接口
 */
abstract class Company {
    protected String name;
    public Company(String name) {
        this.name = name;
    }

    public abstract void add(Company company); // 增加
    public abstract void remove(Company company); // 移除
    public abstract String display(int depth); // 显示
    public abstract String lineOfDuty(); // 履行职责
}
